import instance from "@/http"

//注册
export const register = data => {
  const { account, password } = data
  return instance.post('/login/register', { account, password })//返回的是个promise
}

//登录
export const login = data => {
  const { account, password } = data
  return instance.post('/login/login', { account, password })
}

